package xyz.gpgl.erp.logic.entity.param;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import common.util.mybatis.plus.logic.LogicBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import xyz.gpgl.erp.logic.entity.LogicEmailInfo;
import xyz.gpgl.erp.logic.entity.emeus.LogicSharesEmeus.DoubleSales;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 股票信息
 * </p>
 *
 * @author liubo
 * @since 2021-04-21
 */
@Data
@ToString
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="LogicSharesParam对象", description="股票信息")
public class LogicSharesParam extends LogicBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "股票编码")
    private String code;

    @ApiModelProperty(value = "股票名称")
    private String name;

    @ApiModelProperty(value = "上次牛市最大价格")
    private BigDecimal maxPrice;

    @ApiModelProperty(value = "是否两倍起售[0:是,1:否]")
	@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
    private DoubleSales doubleSales;

    @ApiModelProperty(value = "当前成本价")
    private BigDecimal currentCostPrice;

    @ApiModelProperty(value = "设定购买价格")
    private BigDecimal buyPrice;

    @ApiModelProperty(value = "设定销售价格")
    private BigDecimal sellPrice;

    @ApiModelProperty(value = "邮箱")
    private List<LogicEmailInfo> emails;

}
